﻿
function TextButton(value)
{
    this.innerHTML = value;
    this.className = "button";
    this.classRollOver = "buttonOn";
    this.onmouseover = this.on;
    this.onmouseout = this.off;
}

TextButton.prototype.setValue = function(value)
{
    this.innerHTML = value;
}

TextButton.prototype.getValue = function()
{
    return this.innerHTML;
}

TextButton.prototype.on = function()
{
    Common.on(this);
}

TextButton.prototype.off = function()
{
    Common.off(this);
}

